<?php

$this->pageTitle = 'Topics of author';
$this->pageSummary = sprintf(
	'A collection of topics authored by \'%s\'.
	<p><em>Explanation:</em> This page shows the main topics of this author, according to the DBLP application of the NEON-project (<a href="http://neon-project.org/aspl-v2/">http://neon-project.org/aspl-v2/</a>). By following the topics you will find other researchers in the database. This enrichment is created because of the links against DBLP.</p>',
	$this->author
);
$this->navigationMenu()->addDefaultItems();
$this->actionBar()->addAction('Back to publications of '. $this->author, sprintf($this->baseUrl('/page/author/%s/'), $this->author));
$this->actionBar()->addAction('Visual overview of publications', sprintf($this->baseUrl('/page/author/graph/%s/'), $this->author));
$this->actionBar()->addAction('World map of publications', sprintf($this->baseUrl('/page/author/worldmap/%s/'), $this->author));
$this->actionBar()->addAction('Visualization of co authors', sprintf($this->baseUrl('/page/author/coauthors/%s/'), $this->author));

$this->navigation()->findById('author_index')->setLabel($this->author);
$this->navigation()->findById('author_index')->setParams(array('queryparam'=>$this->author));

if(count($this->topics) == 0){
	echo 'No topics found';
}
else{
	foreach($this->topics as $topic){
		$topic_split = explode(', ',$topic);
		echo $this->block(
			sprintf('<a href="/page/author/authorspertopic/%s/%s">%s</a>',$this->author,$topic_split[0],$topic_split[0]),
			sprintf('Found %d mentions in %d paper(s)',$topic_split[2],$topic_split[1])
		);
	}
} 
?>
  